package jp.eisbahn.mgapi.api.groups;

import org.json.simple.JSONObject;

import jp.eisbahn.mgapi.api.Model;

/**
 * The model class to have Group information.
 * @author Yoichiro Tanaka
 */
public class Group extends Model {

    /**
     * Initialize this instance.
     * @param original JSONObject object to have Group information.
     */
    protected Group(final JSONObject original) {
        super(original);
    }

    /**
     * Retrieve the group ID.
     * @return the Group ID value.
     */
    public final String getId() {
        return getPropertyString("id");
    }

    /**
     * Retrieve the group title.
     * @return the group title string.
     */
    public final String getTitle() {
        return getPropertyString("title");
    }

}
